package com.ibm.cognos.imt.fm

import groovy.util.slurpersupport.NodeChild

/**
 * Created by eric on 8/21/2014.
 */
class QueryItem {
    String name;
    String type;

    QueryItem(NodeChild root) {
        def nameNode = root.name.findAll{
            it.@locale == 'en'
        }
        name = nameNode[0].text()
        type = root.datatype.text()
    }
}
